package com.spring.component;


import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope(value = "prototype")
public class DemoE {
    private Integer num;
    public DemoE(){
        num=(int)(Math.random()*100+1);
    }
    public void print(){
        System.out.println("DemoE:"+num);
    }
}
